import request from '@/axios';
import {baseUrl} from '@/config/env';

export const getDataRuleListByRoleMenu = (roleId, menuId) => {
    return request({
            url: baseUrl + '/start/sysRoleDataRule/getList/' + roleId + "/" + menuId,
            method: 'get',
        }
    )
}
export const saveDataRules = (roleId, menuId, data) => {
    return request({
            url: baseUrl + '/start/sysRoleDataRule/save/' + roleId + "/" + menuId,
            method: 'post',
            data: data
        }
    )
}